package auto.app.service;

import auto.app.controller.from.AutoGlobal.AutoGlobalAddFrom;
import auto.app.controller.from.AutoGlobal.AutoGlobalDeleteFrom;
import auto.app.controller.from.AutoGlobal.AutoGlobalPageFrom;
import auto.app.controller.from.AutoGlobal.AutoGlobalUpdateFrom;
import auto.app.controller.info.AutoGlobal.AutoGlobalDetailInfo;
import auto.app.controller.info.AutoGlobal.AutoGlobalPageInfo;
import auto.app.exetion.MainExection;
import auto.app.model.AutoGlobal;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-08-18
 */
public interface AutoGlobalService extends IService<AutoGlobal> {

    //新增全局参数
    public Boolean addAutoGlobal(AutoGlobalAddFrom autoGlobalAddFrom) throws MainExection;

    //修改全局参数
    public Boolean updateAutoGlobal(AutoGlobalUpdateFrom autoGlobalUpdateFrom) throws MainExection;

    //查看详情
    public AutoGlobalDetailInfo autoGlobalDetail(String globalId) throws MainExection;

    //列表
    public AutoGlobalPageInfo autoGlobalList(AutoGlobalPageFrom autoGlobalPageFrom);

    //返回启用的全局参数
    public List<AutoGlobal> autoGlobalListCase();

    //删除全局参数
    public Boolean deleteGlobalList(AutoGlobalDeleteFrom autoGlobalDeleteFrom) throws MainExection;
}
